package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. KEMU_LEIBIEDao;
import com.capinfo.accumulation.model.accounting.mybist. KEMU_LEIBIE;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.KEMU_LEIBIEServiceI;

@Service("kEMU_LEIBIEService")
public class  KEMU_LEIBIEServiceImpl implements  KEMU_LEIBIEServiceI {
	
	@Autowired
	 KEMU_LEIBIEDao  kEMU_LEIBIEDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.kEMU_LEIBIEDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(KEMU_LEIBIE record) {
		return this.kEMU_LEIBIEDao.insertSelective(record);
	}

	@Override
	public KEMU_LEIBIE selectByPrimaryKey(String id) {
		return this.kEMU_LEIBIEDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(KEMU_LEIBIE record) {
		return this.kEMU_LEIBIEDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<KEMU_LEIBIE> retList = this.kEMU_LEIBIEDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

}
